<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ path + "/";
%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
<meta content="telephone=no,email=no" name="format-detection">
<meta name="wap-font-scale" content="no">
<title>新增发票</title>
<!-- 公用样式css -->
<link href="css/base.css" rel="stylesheet" type="text/css" />
<!-- 界面引入css -->
<link href="css/interests-member.css" rel="stylesheet" type="text/css" />
<!-- ui框架引入css -->
<link href="css/weui.min.css" rel="stylesheet" type="text/css" />
<link href="css/bootstrap-switch.css" rel="stylesheet" type="text/css" />
</head>

<body style="background-color:#fff;">
    <header class="header">
       <div class="header-right wor-colour6" onclick="_backList('${sessionScope.memKey}');return false;">关闭</div>
    </header>
    <div class="tab">
        <a class="active" href="<%=basePath%>member/gotoAddOrdinaryInvoice?type=${type}">增值税普通发票</a>
        <a href="<%=basePath%>member/gotoAddValueInvoice?type=${type}&needInvoice=${needInvoice}">增值税专用发票</a>
    </div>

    <div class="swiper-container">
        <div class="swiper-wrapper w">
            <div class="swiper-slide d">
                <div class="swiper-container2">
                    <div class="swiper-wrapper">
                        <div class="swiper-slide list-group">
                            <form id="form">
                                <input type="hidden" id="invoiceType" name="invoiceType" value="1">
                                <input type="hidden" id="needInvoice" name="needInvoice" value="${needInvoice}">
                                <div class="list-group-item">
                                    <li class="adjun-left">发票抬头</li>
                                    <li class="adjun-right"><input id="title" name="title" required type="text" class="adjun-input wor-colour1" placeholder="请填写发票抬头" /></li>
                                </div>
                                <div class="list-group-item">
                                    <li class="adjun-left">信用代码</li>
                                    <li class="adjun-right"><input id="creditCode" name="creditCode" required number="true" type="text" class="adjun-input wor-colour1" placeholder="请填写信用代码" /></li>
                                </div>
                                <p class="appen-title">发票领取时间</p>
                                <ul class="oneself">
                                    <li class="appen-list">
                                        <div class="fit_box">
                                            <input type="radio" value="0" id="checkbox7" name="takeType">
                                            <label for="checkbox7"></label>
                                        </div>
                                        <div class="margin-left">
                                            <span>离店时领取</span>
                                        </div>

                                    </li>
                                </ul>
                                <ul class="oneself">
                                    <li class="appen-list">
                                        <div class="fit_box">
                                            <input type="radio" value="1" id="checkbox8" name="takeType">
                                            <label for="checkbox8"></label>
                                        </div>
                                        <div class="margin-left">
                                            <span>入住时领取</span>
                                        </div>

                                    </li>
                                </ul>
                                <ul class="oneself">
                                    <li class="appen-list">
                                        <div class="fit_box">
                                            <input type="radio" value="2" id="checkbox9" name="takeType">
                                            <label for="checkbox9"></label>
                                        </div>
                                        <div class="margin-left">
                                            <span>快递寄送</span>
                                        </div>

                                    </li>
                                </ul>
                                <ul style="padding:15px;" >
                                    <li class="word4"><span>设为默认</span>
                                        <input name="status" type="checkbox" data-size="small">
                                        <input id="defaultSign" name="defaultSign" type="hidden" value="false">
                                    </li>
                                </ul>
                                <div class="pay-button-all"><a class="pay-button" onclick="sumbitForm('${sessionScope.memKey}');return false;">保存</a></div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>

<script src="js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="js/jquery/swiper.js"></script>
<script type="text/javascript" src="js/bootstrap-switch.js"></script>
<script type="text/javascript" src="js/jquery.validate.js"></script>
<script type="text/javascript" src="js/messages_zh.min.js"></script>
<script type="text/javascript" src="js/artDialog/artDialog.source.js?skin=simple"></script>
<script type="text/javascript" src="js/artDialog/plugins/iframeTools.source.js"></script>
<c:if test="${type==1}">
<script type="text/javascript" src="js/addInvoice.js"></script>
</c:if>
<c:if test="${type==2}">
<script type="text/javascript" src="js/addInvoiceFrame.js"></script>
</c:if>
</html>
